package com.skyger.view.dialog;

/*
 * About.java
 *
 * Created on __DATE__, __TIME__
 */

import javax.swing.ImageIcon;
import javax.swing.JLabel;

import com.skyger.tool.ImageTool;
import com.skyger.util.Application;

/**
 *
 * @author  __USER__
 */
public class About extends javax.swing.JDialog {
	private Application app = Application.getApp();

	/** Creates new form About */
	public About(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
		initMyComponents();
		setResizable(false);
		setLocationRelativeTo(parent);
	}

	private void initMyComponents() {
		ImageIcon icon = new ImageIcon("res/main/logo.jpg");
		icon = ImageTool.resize(icon, 150, 130);
		JLabel logo = new JLabel(icon);
		logo.setBounds(0, 0, 150, 130);
		jPanel1.add(logo);
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jLabel1 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jPanel1 = new javax.swing.JPanel();
		jLabel3 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setTitle("\u5173\u4e8e");
		getContentPane().setLayout(
				new org.netbeans.lib.awtextra.AbsoluteLayout());

		jLabel1.setFont(new java.awt.Font("微软雅黑", 1, 18));
		jLabel1.setText("JPutty");
		getContentPane().add(
				jLabel1,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 20, -1,
						-1));

		jLabel2.setText("\u90ae\u7bb1:");
		getContentPane().add(
				jLabel2,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 100, 50,
						-1));

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 150,
				Short.MAX_VALUE));
		jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 130,
				Short.MAX_VALUE));

		getContentPane().add(
				jPanel1,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 150,
						130));

		jLabel3.setText("jintianfan@gmail.com");
		getContentPane().add(
				jLabel3,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 100,
						190, -1));

		jLabel4.setText("\u7248\u672c:");
		getContentPane().add(
				jLabel4,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 60, 50,
						-1));

		jLabel5.setText("v0.1.0");
		getContentPane().add(
				jLabel5,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(251, 60, 140,
						-1));

		jLabel6.setText("\u53d1\u5e03\u65f6\u95f4:");
		getContentPane().add(
				jLabel6,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 80, 60,
						-1));

		jLabel7.setText("2013-04-19 12:38:56");
		getContentPane().add(
				jLabel7,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, -1,
						-1));

		jLabel8.setText("\u7f51\u7ad9:");
		getContentPane().add(
				jLabel8,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 120, 50,
						-1));

		jLabel9.setText("www.flyrabbit.allalla.com");
		getContentPane().add(
				jLabel9,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120,
						210, -1));

		jLabel10.setText("\u4f5c\u8005:");
		getContentPane().add(
				jLabel10,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 140, 50,
						-1));

		jLabel11.setText("skyger");
		getContentPane().add(
				jLabel11,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 140, 90,
						-1));

		jLabel12.setText("\u63cf\u8ff0:");
		jLabel12.setToolTipText("");
		getContentPane().add(
				jLabel12,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, 420,
						40));

		jButton1.setText("\u786e\u5b9a");
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});
		getContentPane().add(
				jButton1,
				new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 220, 80,
						-1));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		dispose();
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				About dialog = new About(new javax.swing.JFrame(), true);
				dialog.addWindowListener(new java.awt.event.WindowAdapter() {
					public void windowClosing(java.awt.event.WindowEvent e) {
						System.exit(0);
					}
				});
				dialog.setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton jButton1;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel12;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JPanel jPanel1;
	// End of variables declaration//GEN-END:variables

}